package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Details;
import cn.wolfcode.crm.domain.Directory;
import cn.wolfcode.crm.query.QueryObject;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IDetailsService {
    List<Details> selectAll();

    PageResult query(QueryObject qo);

    void updateByPrimaryKey(Details record, Directory sn);

    Details getByName(String name);

    void insert(Details record, Directory sn);

    void changeState(Long id);

    Long selectByUserName(String name);

    Details selectByPrimaryKey(Long id);

    List<Details> getDictionariesSnByDetails(String dictionariesId);


    void deleteById(Long id);

    Details selectDetailsByid(Long id);

    List<Details> getPlanDetails(String sn);
}
